<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <title>管理端</title>
    <meta name="description" content="管理端">
    <meta name="keywords" content="管理端">

    <!-- Tell the browser to be responsive to screen width -->
    <meta
            content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"
            name="viewport">

    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/plugins/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/plugins/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/plugins/ionicons/css/ionicons.min.css">
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/plugins/iCheck/square/blue.css">
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/plugins/morris/morris.css">
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/plugins/jvectormap/jquery-jvectormap-1.2.2.css">
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/plugins/datepicker/datepicker3.css">
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/plugins/daterangepicker/daterangepicker.css">
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/plugins/datatables/dataTables.bootstrap.css">
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/plugins/treeTable/jquery.treetable.css">
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/plugins/treeTable/jquery.treetable.theme.default.css">
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/plugins/select2/select2.css">
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/plugins/colorpicker/bootstrap-colorpicker.min.css">
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/plugins/bootstrap-markdown/css/bootstrap-markdown.min.css">
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/plugins/adminLTE/css/AdminLTE.css">
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/plugins/adminLTE/css/skins/_all-skins.min.css">
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/css/style.css">
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/plugins/ionslider/ion.rangeSlider.css">
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/plugins/ionslider/ion.rangeSlider.skinNice.css">
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/plugins/bootstrap-slider/slider.css">
    <script>
        function delUser(userId) {
            if(confirm("确定删除该学生信息？")){
                location.href="${pageContext.request.contextPath}/adim/del/"+userId;
            }
        }
    </script>
    <style type="text/css">
        .a{
            position: absolute;
            top: 0px;
            right: 570px;
            width: 120px;
            height: 30px;
        }
        .b{
            position: absolute;
            top: 0px;
            right: 440px;
            width: 120px;
            height: 30px;
        }
        .c{
            position: absolute;
            top: 0px;
            right: 310px;
            width: 120px;
            height: 30px;
        }
        .d{
            position: absolute;
            top: 0px;
            right: 180px;
            width: 120px;
            height: 30px;
        }
        .e{
            position: absolute;
            top: 0px;
            right: 50px;
            width: 120px;
            height: 30px;
        }
    </style>
</head>

<body class="hold-transition skin-blue sidebar-mini">

<div class="wrapper">

    <!-- 页面头部 -->
    <jsp:include page="adimheader.jsp"></jsp:include>
    <!-- 页面头部 /-->

    <!-- 导航侧栏 -->
    <jsp:include page="adimaside.jsp"></jsp:include>
    <!-- 导航侧栏 /-->

    <!-- 内容区域 -->
    <div class="content-wrapper">

        <!-- 内容头部 -->
        <section class="content-header">
            <h1>
                学生信息
            </h1>
            <ol class="breadcrumb">
                <li><a href="${pageContext.request.contextPath}/jsp/adim-main.jsp"><i
                        class="fa fa-dashboard"></i> 首页</a></li>
                <li><a
                        href="${pageContext.request.contextPath}/adim/book">图书管理</a></li>

                <%--                <li class="active">所借图书</li>--%>
            </ol>
        </section>
        <!-- 内容头部 /-->

        <!-- 正文区域 -->
        <section class="content"> <!-- .box-body -->
            <div class="box box-primary">
                <div class="box-header with-border">
                    <h3 class="box-title">学生信息列表</h3>
                </div>

                <div class="box-body">

                    <!-- 数据表格 -->
                    <div class="table-box">

                        <!--工具栏-->
                        <div class="pull-left">
                            <div class="form-group form-inline">
                                <div class="btn-group">
                                    <button type="button" class="btn btn-default" title="新建" onclick="location.href='${pageContext.request.contextPath}/adim/upuser'">
                                        <i class="fa fa-file-o"></i> 修改学生信息
                                    </button>

                                    <button type="button" class="btn btn-default" title="刷新">
                                        <i class="fa fa-refresh"></i> 刷新
                                    </button>
                                </div>
                            </div>
                        </div>
                        <form action="${pageContext.request.contextPath}/adim/sousuo"method="post">

                        <div class="box-tools pull-right">
                            <div class="has-feedback">
                                <input type="text" class="form-control input-sm a" name="id"
                                       placeholder="id搜索" value="0">
                                <input type="text" class="form-control input-sm b" name="username"
                                       placeholder="姓名搜索" value="">
                                <input type="text" class="form-control input-sm c" name="sax"
                                       placeholder="性别搜索" value="">
                                <input type="text" class="form-control input-sm d" name="banji"
                                       placeholder="班级搜索" value="">
                                <input type="text" class="form-control input-sm e" name="college"
                                       placeholder="学院搜索" value="">
                                <button type="submit" title="按条件搜索">
                                    <svg t="1653988368892" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1332" width="32" height="32"><path d="M32.071453 831.767214a31.989853 31.989853 0 0 1-11.836245-61.740417l290.147968-116.123167a31.989853 31.989853 0 1 1 23.672492 59.501127C15.756628 840.724373 41.028612 831.767214 32.071453 831.767214zM511.919251 287.939709a31.989853 31.989853 0 0 1-31.989853-31.989853V32.020883a31.989853 31.989853 0 0 1 63.979707 0v223.928973a31.989853 31.989853 0 0 1-31.989854 31.989853zM991.76705 831.767214c-8.957159 0 12.476043 7.357666-301.984215-118.362457a31.989853 31.989853 0 0 1 23.672492-59.501127l290.147968 116.123167A31.989853 31.989853 0 0 1 991.76705 831.767214z" fill="#d81e06" p-id="1333"></path><path d="M32.071453 831.767214a31.989853 31.989853 0 0 1-31.989853-31.989853V223.960003a31.989853 31.989853 0 0 1 63.979706 0v575.817358a31.989853 31.989853 0 0 1-31.989853 31.989853z" fill="#d81e06" p-id="1334"></path><path d="M511.919251 799.777361a287.908679 287.908679 0 1 1 287.908679-287.908679 287.908679 287.908679 0 0 1-287.908679 287.908679z m0-511.837652a223.928973 223.928973 0 1 0 223.928973 223.928973 223.928973 223.928973 0 0 0-223.928973-223.928973z" fill="#d81e06" p-id="1335"></path><path d="M991.76705 383.909269a31.989853 31.989853 0 0 0 31.989853-31.989853c0-139.47576 0-130.518601-2.23929-138.835963-6.717869-18.874013 20.153608-3.518884-497.762116-210.813133a31.989853 31.989853 0 0 0-23.672491 0C-13.674037 207.645178 6.799469 194.529338 1.681093 216.602336a19.51381 19.51381 0 0 0 0 14.715333c5.118377 22.392897-15.035231 8.957159 479.847798 206.334553v506.719275L43.907699 770.026797a31.989853 31.989853 0 0 0-41.586809 17.914318 31.989853 31.989853 0 0 0 17.914318 41.586809c526.233085 210.493234 476.009016 189.379931 479.847798 191.939119a31.989853 31.989853 0 0 0 24.952085 0l479.847799-191.939119A31.989853 31.989853 0 0 0 1023.756903 799.777361V479.878828a31.989853 31.989853 0 0 0-63.979706 0v298.145432l-415.868092 166.347237V437.652222l415.868092-166.347237V351.919416a31.989853 31.989853 0 0 0 31.989853 31.989853zM511.919251 66.569925L905.714345 223.960003 511.919251 381.350081 118.124158 223.960003z" fill="#d81e06" p-id="1336"></path></svg>
                                </button>
                            </div>
                        </div>

                        </form>
                        <!--工具栏/-->

                        <!--数据列表-->
                        <table id="dataList"
                               class="table table-bordered table-striped table-hover dataTable">
                            <thead>
                            <tr>
                                                                <th class="" style="padding-right: 0px"><input
                                                                        id="selall" type="checkbox" class="icheckbox_square-blue">
                                                                </th>
                                <th class="sorting_asc">学号</th>
                                <th class="sorting_desc">学生姓名</th>
                                <th class="sorting_asc sorting_asc_disabled">学生年龄</th>
                                <th class="sorting_asc">学生性别</th>
                                <th class="sorting_desc sorting_desc_disabled">学生所在班级</th>
                                <th class="sorting_desc">学生所在学院</th>
                                <th class="sorting_desc">借书量</th>
                                <th class="sorting_desc">违章次数</th>
                                <th class="sorting">操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <c:forEach items="${list}" var="user">
                            <tr>
                             <td><input name="ids" type="checkbox"></td>
                                <td>${user.id}</td>
                                <td>${user.username}</td>
                                <td>${user.ags}</td>
                                <td>${user.sax}</td>
                                <td>${user.banji}</td>
                                <td>${user.college}</td>
                                <td>${user.jiebook}</td>
                                <td>${user.weigui}</td>
                                  <td class="text-center">
                                     <a href="javascript:void(0);"onclick="delUser(${user.id})" class="btn bg-olive btn-xs">删除该学生</a>
                                 </td>
                            </tr>
                            </c:forEach>
                            </tbody>

                        </table>
                        <!--数据列表/-->

                    </div>
                    <!-- 数据表格 /-->

                </div>
                <!-- /.box-body -->



            </div>

        </section>
        <!-- 正文区域 /-->

    </div>
    <!-- @@close -->
    <!-- 内容区域 /-->

    <!-- 底部导航 -->
    <footer class="main-footer">
        <div class="pull-right hidden-xs">
            <b>Version</b> 1.0.8
        </div>
        <strong>Copyright &copy; 2022/5/23 <a
                href="http://www.itcast.cn">小帅研发</a>.
        </strong> All rights reserved. </footer>
    <!-- 底部导航 /-->

</div>

<script src="../plugins/jQuery/jquery-2.2.3.min.js"></script>
<script src="../plugins/jQueryUI/jquery-ui.min.js"></script>
<script>
    $.widget.bridge('uibutton', $.ui.button);
</script>
<script src="../plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="../plugins/raphael/raphael-min.js"></script>
<script src="../plugins/morris/morris.min.js"></script>
<script src="../plugins/sparkline/jquery.sparkline.min.js"></script>
<script src="../plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script src="../plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<script src="../plugins/knob/jquery.knob.js"></script>
<script src="../plugins/daterangepicker/moment.min.js"></script>
<script src="../plugins/daterangepicker/daterangepicker.js"></script>
<script src="../plugins/daterangepicker/daterangepicker.zh-CN.js"></script>
<script src="../plugins/datepicker/bootstrap-datepicker.js"></script>
<script
        src="../plugins/datepicker/locales/bootstrap-datepicker.zh-CN.js"></script>
<script
        src="../plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
<script src="../plugins/slimScroll/jquery.slimscroll.min.js"></script>
<script src="../plugins/fastclick/fastclick.js"></script>
<script src="../plugins/iCheck/icheck.min.js"></script>
<script src="../plugins/adminLTE/js/app.min.js"></script>
<script src="../plugins/treeTable/jquery.treetable.js"></script>
<script src="../plugins/select2/select2.full.min.js"></script>
<script src="../plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
<script
        src="../plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.zh-CN.js"></script>
<script src="../plugins/bootstrap-markdown/js/bootstrap-markdown.js"></script>
<script
        src="../plugins/bootstrap-markdown/locale/bootstrap-markdown.zh.js"></script>
<script src="../plugins/bootstrap-markdown/js/markdown.js"></script>
<script src="../plugins/bootstrap-markdown/js/to-markdown.js"></script>
<script src="../plugins/ckeditor/ckeditor.js"></script>
<script src="../plugins/input-mask/jquery.inputmask.js"></script>
<script
        src="../plugins/input-mask/jquery.inputmask.date.extensions.js"></script>
<script src="../plugins/input-mask/jquery.inputmask.extensions.js"></script>
<script src="../plugins/datatables/jquery.dataTables.min.js"></script>
<script src="../plugins/datatables/dataTables.bootstrap.min.js"></script>
<script src="../plugins/chartjs/Chart.min.js"></script>
<script src="../plugins/flot/jquery.flot.min.js"></script>
<script src="../plugins/flot/jquery.flot.resize.min.js"></script>
<script src="../plugins/flot/jquery.flot.pie.min.js"></script>
<script src="../plugins/flot/jquery.flot.categories.min.js"></script>
<script src="../plugins/ionslider/ion.rangeSlider.min.js"></script>
<script src="../plugins/bootstrap-slider/bootstrap-slider.js"></script>
<script>
    $(document).ready(function() {
        // 选择框
        $(".select2").select2();

        // WYSIHTML5编辑器
        $(".textarea").wysihtml5({
            locale : 'zh-CN'
        });
    });

    // 设置激活菜单
    function setSidebarActive(tagUri) {
        var liObj = $("#" + tagUri);
        if (liObj.length > 0) {
            liObj.parent().parent().addClass("active");
            liObj.addClass("active");
        }
    }

    $(document)
        .ready(
            function() {

                // 激活导航位置
                setSidebarActive("admin-datalist");

                // 列表按钮
                $("#dataList td input[type='checkbox']")
                    .iCheck(
                        {
                            checkboxClass : 'icheckbox_square-blue',
                            increaseArea : '20%'
                        });
                // 全选操作
                $("#selall")
                    .click(
                        function() {
                            var clicks = $(this).is(
                                ':checked');
                            if (!clicks) {
                                $(
                                    "#dataList td input[type='checkbox']")
                                    .iCheck(
                                        "uncheck");
                            } else {
                                $(
                                    "#dataList td input[type='checkbox']")
                                    .iCheck("check");
                            }
                            $(this).data("clicks",
                                !clicks);
                        });
            });
</script>
</body>

</html>